<?php
namespace admin\service\interfaces;
use admin\models\Manager;
use common\service\interfaces\ICommonService;
/**
 * admin服务接口
 * @package admin\service\interfaces
 * @author yangjian<yangjian102621@gmail.com>
 */
interface IMenuService extends ICommonService{

    const MANAGER_MENU_CACHE_KEY = 'manager_menu_cache_key';

    /**
     * 更新菜单缓存
     * @return mixed
     */
    public function updateMenuCache();

    /**
     * 根据用户权限获取菜单
     * @param Manager $manager 当前登陆用户
     * @return mixed
     */
    public function getMenuByPermission(Manager $manager);
}
